package myschool.test3;

import myschool.dao.StudentDao;
import myschool.entity.Student;
import myschool.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.text.ParseException;
import java.text.SimpleDateFormat;

/**
 * @author oldliu
 * @since 1.0
 */
public class StudentAdd {
    public static void main(String[] args) throws ParseException {
        //String ->Date
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        SqlSession s = MybatisUtil.get();
        StudentDao mapper = s.getMapper(StudentDao.class);
//        Student stu=new Student();
////        stu.setSname("奥黛丽良木");
////        stu.setSex("男");
////        stu.setGradeid(8L);
////        stu.setQQ("14888888");
////        int update = mapper.add(stu);
////        System.out.println(update);
        long []ar={210L,211L,212L,213L};
        int i = mapper.delA(ar);
        System.out.println("删除了："+i+"个");
        MybatisUtil.close(s);
        int []arr={1,2,3,5,6,7,100};
        for( int x :arr){
            System.out.println(x);
        }

    }
}
